<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/WEB-INF/jsp/common/taglib.jsp"%>
<script type="text/javascript">
	$(function(){
		$("#save").click("click",function(){
			$("#addUser").ajaxSubmit({
				type:'post',
				dataType:'json',
				success:function(result){
					if(result){
						opener.loadList();
						close();
					}
				}
			})
		});
		$("#close").click("click",function(){
			close();
		});
	}) 
</script>
</head>
<body>
	<form action="${ctx }/user/addUser.shtml" id="addUser" name="addUser" method="post">
		<div>
			<label>用户名：</label>
			<input type="text" id="username" name="username">
			<br>
			<br>
			<label>密码：</label>
			<input type="password" id="password" name="password"/>
		</div>
		<br>
		<div>
			<input type="button" id="save" value="提交">&nbsp;&nbsp;&nbsp;
			<input type="button" id="close" value="关闭"/>
		</div>
	</form>
</body>
</html>